f = open("index.html", encoding='utf8')

lines = f.readlines()

s = ""
for line in lines:
    s += "<div class='content'>"
    if line.strip() == "":
        s += "<br/>"
    else:
        s += line.strip()

    s += "</div>"
    s += "\n"

open("out.html", encoding='utf8')
